function loadScript() {
  var script = document.createElement("script");
  script.type = "text/javascript";
  script.src = "http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false";
  document.body.appendChild(script);
}
window.onload = loadScript;